Loading TOC...

MarkLogic 10 Product Documentation
DELETE /v1/alert/rules/{name}

Summary

Delete an alerting rule previously installed using PUT /v1/alert/rules/{name}.

URL Parameters
database? Perform this operation on the named content database instead of the default content database associated with the REST API instance. Using an alternative database requires the "eval-in" privilege; for details, see Security Requirements in the REST Application Developer's Guide.

Response

MarkLogic Server responds with status 204 (Deleted), even if there is no rule installed with the given name.

If the Alerting API is not enabled, MarkLogic Server returns status 403.

Required Privileges

This operation requires the rest-writer role, or the following privilege:

http://marklogic.com/xdmp/privileges/rest-writer

Usage Notes

For details, see Alerting in the REST Application Developer's Guide and Creating Alerting Applications in the Search Developer's Guide.

Example

$ curl --anyauth --user user:password -X DELETE -i \
    'http://localhost:8000/v1/alert/rules/example'

==> The rule installed under the name "example" is deleted. MarkLogic
    Server responds with output similar to the following:

HTTP/1.1 204 Deleted
Server: MarkLogic
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=5
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.